package lionel.MyController;

import lionel.MyBrowser.MyBrowsingCtrl;
import lionel.MyBrowser.MyConductor;

public abstract class MyController
{
	protected MyConductor m_conductor = null;
	protected boolean hasConductor = false;
	protected MyBrowsingCtrl m_browser = null;
	protected String ID = null;
	
	public MyController(String id)
	{ ID = id; }
	
	public String getID() { return ID; }

	// Add "conductor" event listener.
	public void isConductor(MyConductor lst) {
		m_conductor = lst;
	}
	
	public boolean hasConductor() {
		return (m_conductor!=null);
	}
	
	public MyConductor getConductor() {
		return (m_conductor);
	}

	// Add train browser listener
	public void isBrowser(MyBrowsingCtrl lst) {
		m_browser = lst;
	}
	
	public void shutdown()
	{		
	}
}
